
package com.onlyxiahui.ability.basic.common.step;

/**
 * Description <br>
 * Date 2021-03-31 00:51:59<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

public class NextPipeStep {

	private NextPipeRun run;
	private NextPipeStep next;

	public NextPipeStep() {

	}

	public NextPipeStep set(NextPipeRun run) {
		this.run = run;
		return next = new NextPipeStep();
	}

	public void next() {
		if (null != run) {
			run.run(next);
		}
	}

	public static NextPipeStep build() {
		return new NextPipeStep();
	}
}
